1 <div id="extractedReports" class="page-layout simple left-sidenav inner-sidenav motion-list">
3 <div class="header md-accent-bg" layout="row" layout-align="space-between center">
5 <div layout="row" layout-align="start center">
6 <div class="logo" layout="row" layout-align="start center">
7 <span class="logo-icon">
8 <md-icon md-font-icon="icon-chart-line" class="s24"></md-icon>
10 <span class="logo-text" translate="ANALYTICS.EXTRACTEDREPORTS">ExtractedReports</span>
17 <div class="search-input-wrapper" layout="row" layout-align="start center">
19 <md-icon md-font-icon="icon-magnify"></md-icon>
21 <md-input-container md-no-float class="m-0">
22 <input id="search" placeholder="Search for anyone" type="text" ng-model="vm.query.filter"
23 ng-model-options="{ debounce: 1000 }" translate translate-attr-placeholder="APP.SEARCH_FOR_ANYONE" />
32 <div ng-show="vm.selectedExtractedReports.length > 0" class="selected-bar header animate-slide-down md-accent-bg"
33 layout="row" layout-align="start center">
34 <div class="close-button-wrapper" ng-click="vm.selectedExtractedReports =[]">
35 <md-button layout="row" layout-align="start center">
36 <md-icon md-font-icon="icon-arrow-left" class="mr-8"></md-icon>
37 <span translate="APP.BACK">Back</span>
41 <div flex layout="row" layout-align="space-between center">
43 <span class="selected-extractedReports-count">
44 <span>{{vm.selectedExtractedReports.length}}</span>
45 <span translate="APP.SELECTED">selected</span>
48 <md-menu class="select-menu" ng-if="!vm.currentThread">
49 <md-button class="md-icon-button" ng-click="$mdMenu.open($event)" aria-label="multi select toggle" translate
50 translate-attr-aria-label="ANALYTICS.MULTI_SELECT_TOGGLE">
51 <md-icon md-font-icon="icon-menu-down"></md-icon>
53 <md-menu-content width="3">
55 <md-button ng-click="vm.selectAllExtractedReports()" translate="APP.SELECT_ALL">
60 <md-button ng-click="vm.deselectExtractedReports()" translate="APP.SELECT_NONE">
68 <div class="multi-select-actions">
69 <button class="md-icon-button" ng-csv="vm.exportSelectedExtractedReports" csv-label="true"
70 filename="extractedReports.csv">
71 <md-icon md-font-icon="icon-file-excel"></md-icon>
73 <md-button class="md-icon-button" ng-if="vm.crudPermissions.canDelete"
74 ng-click="vm.deleteSelectedExtractedReports($event)" aria-label="delete selected" translate
75 translate-attr-label="APP.DELETE_SELECTED">
76 <md-icon md-font-icon="icon-delete"></md-icon>
81 <!-- / SELECTED BAR -->
84 <div class="content" md-background-bg layout="row" layout-align="start start">
86 <div class="main scrollable" ms-scroll>
87 <!-- EXTRACTEDREPORT TABLE -->
90 <table md-table md-row-select multiple ng-model="vm.selectedExtractedReports" md-progress="vm.promise">
91 <thead md-head md-order="vm.query.sort" md-on-reorder="vm.getExtractedReports">
93 <th md-column ng-if="vm.table == 'users' || vm.table == 'agents'" width="20px"></th>
94 <th md-column md-order-by="id">{{ 'APP.ID' | translate }}</th>
95 <th md-column md-order-by="name">
96 {{ 'ANALYTICS.REPORTNAME' | translate }}
98 <th md-column md-order-by="basename">
99 {{ 'APP.NAME' | translate }}
101 <th md-column md-order-by="type">
102 {{ 'APP.TYPE' | translate }}
104 <th md-column md-order-by="startDate">
105 {{ 'ANALYTICS.DATE_RANGE_FROM' | translate }}
107 <th md-column md-order-by="endDate">
108 {{ 'ANALYTICS.DATE_RANGE_TO' | translate }}
110 <th md-column md-order-by="createdAt">
111 {{ 'ANALYTICS.GENERATED_AT' | translate }}
113 <th md-column md-order-by="status">
114 {{ 'APP.STATUS' | translate }}
116 <th md-column md-order-by="output">
117 {{ 'APP.OUTPUT' | translate }}
119 <th md-column width="10px"></th>
123 <tr md-row ng-hide="vm.extractedReports.rows.length">
124 <td md-cell colspan="10">
125 <div layout="row" layout-align="center center">
126 <span translate="APP.NO_AVAILABLE_INFO">No Available Info</span>
130 <tr md-row md-select="extractedReport" md-select-id="id"
131 ng-repeat="extractedReport in vm.extractedReports.rows">
132 <td md-cell ng-if="extractedReport.userpic">
133 <img class="avatar" alt="{{extractedReport.name}}" ng-src="api/users/{{extractedReport.id}}/avatar" />
135 <td md-cell ng-if="!extractedReport.userpic && (vm.table == 'users' || vm.table == 'agents')">
136 <img class="avatar" alt="{{extractedReport.name}}" ng-src="assets/images/avatars/profile.png" />
138 <td ng-click="vm.createOrEditExtractedReport($event, extractedReport)" md-cell class="id">
139 {{extractedReport.id}}
141 <td ng-click="vm.createOrEditExtractedReport($event, extractedReport)" md-cell class="name">
142 {{extractedReport.name}}
144 <td ng-click="vm.createOrEditExtractedReport($event, extractedReport)" md-cell class="basename">
145 {{extractedReport.basename}}
147 <td ng-click="vm.createOrEditExtractedReport($event, extractedReport)" md-cell class="type">
148 {{extractedReport.type}}
150 <td ng-click="vm.createOrEditExtractedReport($event, extractedReport)" md-cell class="startDate">
151 {{extractedReport.startDate | date:'medium' }}
153 <td ng-click="vm.createOrEditExtractedReport($event, extractedReport)" md-cell class="endDate">
154 {{extractedReport.endDate | date:'medium' }}
156 <td ng-click="vm.createOrEditExtractedReport($event, extractedReport)" md-cell class="createdAt">
157 {{extractedReport.createdAt | date:'medium' }}
159 <td ng-click="vm.createOrEditExtractedReport($event, extractedReport)" md-cell class="status">
160 {{extractedReport.status}}
162 <td ng-click="vm.createOrEditExtractedReport($event, extractedReport)" md-cell class="output">
163 {{extractedReport.output}}
166 <td md-cell class="actions">
168 <md-button class="md-icon-button" aria-label="More" translate translate-attr-aria-label="APP.MORE"
169 ng-click="$mdMenu.open($event)">
170 <md-icon md-font-icon="icon-dots-vertical"></md-icon>
173 <md-menu-content width="3">
178 <md-menu-item ng-if="vm.crudPermissions.canEdit">
179 <md-button ng-click="vm.editdialog(extractedReport, $event )"
180 translate="ANALYTICS.EDIT_EXTRACTEDREPORT">
189 <md-menu-item ng-if="extractedReport.status == 'Completed'">
191 ng-click="vm.downloadfile2(extractedReport, $event , 'analytics/extracted_reports' )"
192 translate="ANALYTICS.DOWNLOAD_EXTRACTEDREPORT">
193 Download ExtractedReport